package ooday03;
//Teacher   工资  上课()    重写吃()
public class Teacher01 extends Person01{
    double price;

    Teacher01(String name,int age, String sex, String address,double price){
        super(name,age,sex,address);
        this.price = price;
    }

    void work(){
        System.out.println(name+"正在工作。。。。。。");
    }

    void eat(){
        System.out.println(name+"是一名教师，今年"+age+"岁，家住在"+address+"工资是"+price);
    }
}
